.highlight-container[data-rel] {
  position: relative;
}
.highlight-container:hover .copy-button,
.highlight-container .copy-button:focus,
.highlight-container:hover .fold-button,
.highlight-container .fold-button:focus {
  opacity: 1;
}
.fold-button {
  cursor: pointer;
  border-radius: 0 0 0 0;
  display: inline-block;
  font-weight: bold;
  line-height: 1.8;
  opacity: 0;
  outline: 0;
  padding: 6px 15px;
  position: absolute;
  vertical-align: middle;
  white-space: nowrap;
  font-size: 1rem;
  color: var(--default-text-color);
  -moz-user-select: none;
  -ms-user-select: none;
  -webkit-user-select: none;
  user-select: none;
  background: var(--scond-background-color);
  border: 0;
  right: 40px;
  top: 0;
}
.copy-button {
  cursor: pointer;
  border-radius: 0 $redefine-border-radius-large 0 0;
  display: inline-block;
  font-weight: bold;
  line-height: 1.8;
  opacity: 0;
  outline: 0;
  padding: 6px 15px;
  position: absolute;
  vertical-align: middle;
  white-space: nowrap;
  font-size: 1rem;
  color: var(--default-text-color);
  -moz-user-select: none;
  -ms-user-select: none;
  -webkit-user-select: none;
  user-select: none;
  background: var(--scond-background-color);
  border: 0;
  right: 0;
  top: 0;
}
.highlight-container[data-rel] {
  background: var(--highlight-background);
  border-radius: $redefine-border-radius-large;
  padding-top: 40px;
  padding-left: 5px;
  margin-top: 10px;
  margin-bottom: 1.2rem;
  position: relative;
  box-shadow: var(--redefine-box-shadow-flat);
}
.highlight-container[data-rel] figcaption {
  font-weight: bold;
  font-size: 16px;
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
}
.highlight-container[data-rel] figcaption a {
  margin-left: 10px;
}
.highlight-container[data-rel] .folded figure {
  height: 0 !important;
  width: 0 !important;
  overflow: hidden !important;
}
.highlight-container[data-rel]::before {
  position: absolute;
  content: attr(data-rel);
  line-height: 42px;
  border-radius: $redefine-border-radius-large;
  box-shadow: none;
  height: 12px;
  left: 4px;
  position: absolute;
  width: auto;
  margin-left: 10px;
  top: 2px;
  color: var(--default-text-color);
  font-weight: bold;
  font-size: 16px;
}
